package main

import (
    "github.com/gin-gonic/gin"
    "net/http"
)

func main() {
    r := gin.Default() //初始化

    r.GET("/", func(c *gin.Context) {
        c.String(http.StatusOK, "hello world")
    })             //get请求
    r.Run(":8080") //在8080端口启动监听

}
